/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUSServices;

import DAOServices.QLNHSDAOServices_Service;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.xml.ws.WebServiceRef;

/**
 *
 * @author USER
 */
@WebService(serviceName = "NewWebService")
public class NewWebService {

    @WebServiceRef(wsdlLocation = "WEB-INF/wsdl/localhost_8080/QLNS_DAO_WS/QLNHS_DAO_Services.wsdl")
    private QLNHSDAOServices_Service service;

    /**
     * This is a sample web service operation
     */
    @WebMethod(operationName = "hello")
    public String hello(@WebParam(name = "name") String txt) {
        return "Hello " + txt + " !";
    }

    @WebMethod(operationName = "hello1")
    public java.util.List<DAOServices.Sach> laySach(java.lang.String mySQL) {
        DAOServices.QLNHSDAOServices port = service.getQLNHSDAOServicesPort();
        return port.laySach(mySQL);
    }
}
